import Vue from 'vue'
import Router from 'vue-router'
import MainPage from '@/views/main'
import Login from '@/views/login'
import UserPage from '@/views/user_page'
import AnswerDetail from '@/views/answer_detail'
import UserDetail from '@/views/user_detail'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'MainPage',
      component: MainPage
    },
    {
      path: '/main',
      name: 'MainPage',
      component: MainPage
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/user-page',
      name: 'UserPage',
      component: UserPage
    },
    {
      path: '/answer-detail',
      name: 'AnswerDetail',
      component: AnswerDetail
    },
    {
      path: '/user-detail',
      name: 'UserDetail',
      component: UserDetail
    }
  ]
})
